-
-
Notifications
You must be signed in to change notification settings - Fork 839
💥 Make typer-slim a shallow wrapper around typer, always requiring rich and shellingham
#1522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
svlandeg
wants to merge
12
commits into
fastapi:master
Choose a base branch
from
svlandeg:drop/slim
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+37
−104
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 tasks
svlandeg
commented
Feb 6, 2026
| The `standard` extra dependencies are `rich` and `shellingham`. | ||
|
|
||
| **Note**: The `typer` command is only included in the `typer` package. | ||
| However, since version 0.22.0, we have stopped supporting this, and `typer-slim` now simply installs (all of) Typer. |
Member
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: update version here right before merging/releasing.
Contributor
svlandeg
commented
Feb 9, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From a recent survey we've run on Typer, we've learned that less than 5% of users specifically use
typer-slim. We had originally introduced this package to provide users the option to not installshellingham&rich. However, even with these two packages, thetyperlibrary is still pretty small (25Mb) and the code base is more complex by having to cater for custom logic whether or notRichis present or not. Additionally, we've run into issues (#1503) with publishingtyperandtyper-slimfrom the same codebase, so we can't keep the current situation. All of this has resulted in the conclusion to drop support fortyper-slim. It will just be a shallow wrapper aroundtyper.We are aware that some users do not prefer some of the Rich formatting, and we'll look into options of customizing this further in the future. For now, there is always the option of setting
Typer(rich_markup_mode=None)for each app, or setting a global environment variableTYPER_USE_RICHtoFalseto disable any Rich formatting.I've built the wheel locally (with
TIANGOLO_BUILD_PACKAGE="typer-slim") and installed it in a clean venv, and got:WIP